package com.livegoods.controller;


import com.livegoods.commons.pojo.LivegoodsResult;
import com.livegoods.service.BuyActionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class BuyActionController {


    @Autowired
    private BuyActionService buyActionService;

    @GetMapping("/buyaction")
    public LivegoodsResult buyaction(@RequestParam("id") String houseId,String user){
        return buyActionService.buyaction(houseId,user);
    }
}
